package projectmanagerapp

class Requirement {

    String name
	String description
	String type
	Integer functionalPoints
	
	
	static belongsTo = [project : Project]
	
	String toString() {
		"${name} "
		
		
		}
	
	 static constraints = {
		 
		 name(blank:false)
		 description(nullable:true)
		 type(blank:false, inList:["Functional","Non-Functional"])
		 project()
		 functionalPoints(nullable:true)
	 }
    
}
